package com.tencent.wxcloudrun.vo.request.acti;

import com.tencent.wxcloudrun.domain.TActiUserImg;
import com.tencent.wxcloudrun.vo.BaseReqVo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @Author ZhaoZiYin
 * @Date 2025/4/22
 * @Description 保存活动用户返图请求入参
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ActiSaveUserImgReqVo", description = "保存活动用户返图请求入参")
public class ActiSaveUserImgReqVo extends BaseReqVo {

    @ApiModelProperty("活动序号")
    private Long actiId;

    @ApiModelProperty("活动标题")
    private String actiTitle;

    @ApiModelProperty("卡片ID")
    private Long cardId;

    @ApiModelProperty("卡片名称")
    private String cardName;

    @ApiModelProperty("返图图片列表")
    private String imgUrlList;

    public TActiUserImg build() {
        TActiUserImg actiUserImg = new TActiUserImg();
        actiUserImg.setActiId(this.getActiId());
        actiUserImg.setActiTitle(this.getActiTitle());
        actiUserImg.setCardId(this.getCardId());
        actiUserImg.setCardName(this.getCardName());
        actiUserImg.setImgUrlList(this.getImgUrlList());
        actiUserImg.setCreatedBy(String.valueOf(this.getUserId()));
        actiUserImg.setUpdatedBy(String.valueOf(this.getUserId()));
        actiUserImg.setCreatedTime(LocalDateTime.now());
        actiUserImg.setUpdatedTime(LocalDateTime.now());
        return actiUserImg;
    }

}
